let getMin = (arr) => {
    let min = Number.MAX_SAFE_INTEGER;
    arr.forEach(item => {
        min = Math.min(item, min);
    });
    return min;
}

console.log(getMin([12, 34, 32, 89, 4]));

